package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="Message"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class WebMessage implements Serializable {

    /** identifier field */
    private Integer id;

    /** persistent field */
    private String title;

    /** persistent field */
    private String writor;

    /** persistent field */
    private String messageDate;

    /** nullable persistent field */
    private String messageContent;

    /** nullable persistent field */
    private String replyPerson;

    /** nullable persistent field */
    private String replyDate;

    /** nullable persistent field */
    private String replyContent;

    /** nullable persistent field */
    private String dealState;

    /** nullable persistent field */
    private String isrelease;

    /** full constructor */
    public WebMessage(String title, String writor, String messageDate, String messageContent, String replyPerson, String replyDate, String replyContent, String dealState, String isrelease) {
        this.title = title;
        this.writor = writor;
        this.messageDate = messageDate;
        this.messageContent = messageContent;
        this.replyPerson = replyPerson;
        this.replyDate = replyDate;
        this.replyContent = replyContent;
        this.dealState = dealState;
        this.isrelease = isrelease;
    }

    /** default constructor */
    public WebMessage() {
    }

    /** minimal constructor */
    public WebMessage(String title, String writor, String messageDate) {
        this.title = title;
        this.writor = writor;
        this.messageDate = messageDate;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="Id"
     *             unsaved-value="0"
     *         
     */
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="Title"
     *             length="100"
     *             not-null="true"
     *         
     */
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    /** 
     *            @hibernate.property
     *             column="Writor"
     *             length="20"
     *             not-null="true"
     *         
     */
    public String getWritor() {
        return this.writor;
    }

    public void setWritor(String writor) {
        this.writor = writor;
    }

    /** 
     *            @hibernate.property
     *             column="MessageDate"
     *             length="23"
     *             not-null="true"
     *         
     */
    public String getMessageDate() {
        return this.messageDate;
    }

    public void setMessageDate(String messageDate) {
        this.messageDate = messageDate;
    }

    /** 
     *            @hibernate.property
     *             column="MessageContent"
     *             length="2147483647"
     *         
     */
    public String getMessageContent() {
        return this.messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    /** 
     *            @hibernate.property
     *             column="ReplyPerson"
     *             length="20"
     *         
     */
    public String getReplyPerson() {
        return this.replyPerson;
    }

    public void setReplyPerson(String replyPerson) {
        this.replyPerson = replyPerson;
    }

    /** 
     *            @hibernate.property
     *             column="ReplyDate"
     *             length="23"
     *         
     */
    public String getReplyDate() {
        return this.replyDate;
    }

    public void setReplyDate(String replyDate) {
        this.replyDate = replyDate;
    }

    /** 
     *            @hibernate.property
     *             column="ReplyContent"
     *             length="2147483647"
     *         
     */
    public String getReplyContent() {
        return this.replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    /** 
     *            @hibernate.property
     *             column="DealState"
     *             length="1"
     *         
     */
    public String getDealState() {
        return this.dealState;
    }

    public void setDealState(String dealState) {
        this.dealState = dealState;
    }

    /** 
     *            @hibernate.property
     *             column="IsRelease"
     *             length="1"
     *         
     */
    public String getIsrelease() {
        return this.isrelease;
    }

    public void setIsrelease(String isrelease) {
        this.isrelease = isrelease;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
